const useShare = (title: string = '邻里生活荟') => {
  onShareAppMessage(() => {
    return {
      title: '邻里生活荟',
      path: '/pages/index/index',
    }
  })
  onShareTimeline(() => {
    return {
      title: '邻里生活荟',
      path: '/pages/index/index',
    }
  })

  return {
    onShareAppMessage,
    onShareTimeline,
  }
}

export default useShare
